﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./js/htmlFont.js"></script>
    <title>Document</title>
</head>

<body>
    <!-- 头部 -->
    <header>
        <div class="header-top">
            <img src="./images/header_logo.png" alt="">
            <img src="./images/header_app.png" alt="">
        </div>
        <div class="header-footer">
            <input type="text" class="ipt" placeholder="请输入你想比价的商品">
            <a href="javascript:;">搜索</a>
        </div>
        <div class="kong"></div>
    </header>

    <!-- 底部 -->
    <footer>
        <div class="footer-top">
            <ul>
                <li>登录</li>
                <li>注册</li>
                <li class="go">返回顶部</li>
            </ul>
        </div>
        <div class="footer-footer">
            <div class="shouji">
                <a href="javascript:;">手机APP下载</a>
                <a href="javascript:;"> 慢慢买手机版</a>
                <a href="javascript:;">-掌上比价平台</a>
            </div>
            <a href="javascript:;">m.mammambuy.com</a>

        </div>
    </footer>
</body>

</html>
<script src="./lib/jquery/jquery-1.12.4.js"></script>
<script>
    $(function() {
        /* 需求模板：当__按钮__被__点击__时，效果是__返回顶部__ */
        $('.go').click(function() {
            $('html,body').stop().animate({
                scrollTop: 0
            });
        });
    });
</script>